package org.osiris.persistence.controllers;

import java.util.List;

import javax.persistence.EntityManager;

import org.osiris.persistence.Tiposderelacion;
import org.osiris.persistence.controllers.exceptions.IllegalOrphanException;
import org.osiris.persistence.controllers.exceptions.NonexistentEntityException;

public interface TiposRelacionInterface {

	public abstract EntityManager getEntityManager();

	public abstract void create(Tiposderelacion tiposderelacion);

	public abstract void edit(Tiposderelacion tiposderelacion)
			throws IllegalOrphanException, NonexistentEntityException,
			Exception;

	public abstract void destroy(Long id) throws IllegalOrphanException,
			NonexistentEntityException;

	public abstract List<Tiposderelacion> findTiposderelacionEntities();

	public abstract List<Tiposderelacion> findTiposderelacionEntities(
			int maxResults, int firstResult);

	public abstract Tiposderelacion findTiposderelacion(Long id);

	public abstract int getTiposderelacionCount();

}